﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MusicOnLine.Common
{
    public class MOLAuthorzieAttribute:AuthorizeAttribute
    {       
        protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
        {   
            filterContext.Result = new RedirectResult("/Account/AuthorizeError");
        }
    }
}